<template>
  <div>
    <el-menu
      :default-active="activeIndex"
      class="el-menu-demo"
      mode="horizontal"
      @select="handleSelect"
      active-text-color="#666666"
    >
      <el-menu-item index="1"><i class="iconfont icon-wenzhang2 icon_cls"></i>文章</el-menu-item>
      <el-menu-item index="2"><i class="el-icon-message-solid icon_cls"></i>动态</el-menu-item>
      <el-menu-item index="3"><i class="iconfont icon-pinglun  icon_cls"></i>最新评论</el-menu-item>
      <el-menu-item index="4"><i class="iconfont icon-remen icon_cls"></i>热门</el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: "homemessage",
  data() {
    return {
      activeIndex: "2",
    };
  },
};
</script>

<style scoped>
.icon_cls {
  padding-right: 1rem;
  font-size: 1.2rem;
}
</style>